/* 社区分享内容 */
import { setStorage, storePasted } from '@/utils/storage'

const mockData = [
  { id: 1, name: '涂鸦小黄鸭', type: 'donate', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/community/20220312094638541-Rectangle 13 (1).png' },
  { id: 2, name: '高达模型', type: 'donate', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/community/20220312094638541-Rectangle 65.png' },
  { id: 3, name: '尤达玩偶', type: 'donate', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/community/20220312094638541-Rectangle 66.png' },
  { id: 4, name: '米菲娃娃', type: 'donate', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/community/20220312094638541-Rectangle 67.png' },
  { id: 5, name: '涂涂熊交换', type: 'exchange', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220506103804690-Group 205.png' },
  { id: 6, name: '复古小车交换', type: 'exchange', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/community/20220312094638542-Rectangle 61 (1).png' },
  { id: 7, name: '龙猫模型交换', type: 'exchange', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503152358184-Rectangle 62 (1).png' },
  { id: 8, name: '赛车模型交换', type: 'exchange', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503152209256-Rectangle 63.png' },
  { id: 9, name: '乐高模型', type: 'publish', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220506103804690-Group 205 (1).png' },
]

/* 初始化本地数据 */
if (storePasted()) {
  setStorage('community', JSON.stringify(mockData))
  console.log('重新缓存社区')
}
export default mockData
